package us.icitap.commandcenter.utils;

import java.util.Properties;

import javax.naming.Context;

public class PortalEJBProperties {

	public static Properties getInitProperties() {

		Properties result = new Properties();

		// We need to tell the context where and how to look

		result.setProperty(Context.INITIAL_CONTEXT_FACTORY, "com.sun.enterprise.naming.SerialInitContextFactory");

		//result.setProperty("java.naming.factory.url.pkgs", "com.sun.enterprise.naming");
//
		//result.setProperty("java.naming.factory.state",	"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");
		//result.setProperty("java.naming.provider.url", "iiop://192.168.3.199:3700");
		// Should not be necessary for local test (default values), but

		// currently is

		// result.setProperty("org.omg.CORBA.ORBInitialHost","192.168.3.199");

		// result.setProperty("org.omg.CORBA.ORBInitialPort", "3700");

		result.setProperty("org.omg.CORBA.ORBInitialHost", "192.168.3.199");

		result.setProperty("org.omg.CORBA.ORBInitialPort", "3700");
//		result.setProperty(Context.SECURITY_PRINCIPAL, "");

		return result;

	}
}
